package com.suncreate.zhtz.iot.service;

import com.suncreate.zhtz.iot.mapper.AdcMapper;
import com.suncreate.zhtz.iot.mapper.DatabaseMapper;
import com.suncreate.zhtz.iot.model.AdcModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
@Slf4j
@Service
public class AdcService {
    @Autowired
    private AdcMapper adcMapper;

    public List<AdcModel> queryAdcAudioDataByTime(String startTime,String endTime,Integer chNum) {
        return adcMapper.queryAdcAudioDataByTime(startTime,endTime,chNum);
    }

    public List<AdcModel> queryAdcAudioData(String startTime,String endTime,Integer chNum,String calculate,String interval, Integer sort,Integer limit) {
        return adcMapper.queryAdcAudioData(startTime,endTime,chNum,calculate,interval,sort,limit);
    }
}
